package movies
{
	import mymyoux.utils.Hash;
	
	public class AllocineSearch
	{
		protected var categories:Hash;
		public function AllocineSearch()
		{
			categories = new Hash();
		}
		public function addCategorie(name:String,value:uint):void
		{
			name = name=="Séries TV"?"Séries":name;
			name = name=="News et Dossiers"?"Articles":name;
			categories.put(name,value);	
		}
		public function addIntoCategorie(name:String,url:String,value:String):void
		{
			//categories.put(name,value);
			name = name=="film"?"Films":name;
			name = name=="series"?"Séries":name;
			name = name=="article"?"Articles":name;
			trace(name+" : "+url+"=>"+value);	
		}
		public function toString():String
		{
			var result:String = "[Search";
			for(var i:int=0; i<categories.length; i++)
			{
				result += " "+	categories.getKeys()[i]+"=\""+categories.get(categories.getKeys()[i])+"\"";
			}
			return result+"]";	
		}
	}
}